<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/page/inc/taglib.jsp"%>
<div class="pageHeader">
	<form id="pagerForm" onsubmit="return dialogSearch(this);"
		action="${pageContext.request.contextPath}/investment/invfollow/list?id=${requestScope.imid}"
		method="post">
		<!-- 分页表单参数 -->
		<%@include file="/WEB-INF/page/inc/pageForm.jsp"%>
		<!-- 需要排序的字段 -->
		<input type="hidden" name="orderField"
			value="${requestScope.dwzPageBean.countResultMap.orderField}" />
		<!-- 正序倒序 -->
		<input type="hidden" name="orderDirection"
			value="${requestScope.dwzPageBean.countResultMap.orderDirection}" />
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li>
			<shiro:hasPermission name="/investment/invfollow/toInsert">
			<a class="add"
				href="${pageContext.request.contextPath}/investment/invfollow/toInsert?id=${requestScope.imid}"
				rel="insert" target="dialog" mask="true" close="invFollow"><span>添加</span></a></shiro:hasPermission></li>
			<li>
			<shiro:hasPermission name="/investment/invfollow/delete">
			<a class="delete"
				href="${pageContext.request.contextPath}/investment/invfollow/delete"
				rel="id" target="selectedTodo" targetType="dialog" title="确定要删除吗？"
				warn="请最小选择一条记录" mask="true" callback="invFollow"><span>批量删除</span></a></shiro:hasPermission></li>
		</ul>
	</div>
	<table class="table" targetType="dialog" asc="asc" desc="desc"
		width="100%" layoutH="138">
		<thead>
			<tr>
				<th width="22"><input type="checkbox" group="id"
					class="checkboxCtrl"></th>
				<th>跟进人</th>
				<th>跟进时间</th>
				<th>跟进操作</th>
				<th>操作人</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>

			<c:if
				test="${requestScope.dwzPageBean != null &&  requestScope.dwzPageBean.recordList != null }">
				<c:forEach var="record"
					items="${requestScope.dwzPageBean.recordList}" varStatus="status">
					<tr ondblclick="openDetails(this)" target="dialog"
						href="${pageContext.request.contextPath}/investment/invfollow/toUpdate?id=${record.id}"
						title="编辑">
						<td><input name="id" value="${record.id}" type="checkbox"></td>
						<td>${record.mename}</td>
						<td><fmt:formatDate value="${record.fwtm}"
								pattern="yyyy-MM-dd" /></td>
						<td>${record.fwop}</td>
						<td>${record.operator}</td>

						<td><shiro:hasPermission
								name="/investment/invfollow/toUpdate">
								<a title="编辑" target="dialog"
									href="${pageContext.request.contextPath}/investment/invfollow/toUpdate?id=${record.id}"
									class="editBtn" mask="true"><span>编辑</span></a>
							</shiro:hasPermission> <shiro:hasPermission name="/investment/invfollow/delete">
								<a title="确定要删除吗？" mask="true" target="ajaxTodo"
									href="${pageContext.request.contextPath}/investment/invfollow/delete?id=${record.id}"
									target="selectedTodo" targetType="dialog" callback="invFollow"
									class="deleteBtn" mask="true"><span>删除</span></a>
							</shiro:hasPermission></td>

					</tr>
				</c:forEach>
			</c:if>

		</tbody>
	</table>
	<!-- 分页条 -->
	<%@include file="/WEB-INF/page/inc/dialogPageBar.jsp"%>
</div>
<script>
	function invFollow() {
		$.pdialog
				.reload(
						"${pageContext.request.contextPath}/investment/invfollow/list?id=${imid}",
						{
							data : {},
							dialogId : "invFollow",
							callback : null
						})
		return true;
	}
</script>